<template>
  <div>
    <!-- 父向子传值 -->
    <Product title="好吃的口水鸡" price='50' info='开业大酬宾'></Product>
    <Product title="好可爱的可爱多" price='20' info='好喝的可爱多'></Product>
    <Product title="火锅" price='120' :info="str"></Product>

  </div>
</template>

<script>
// 引入组件
import Product from './components/MyProduct'
export default {
  data () {
    return {
      str: "好贵呀~"
    }
  },
  // 注册组件
  components: {
    Product
  }
}
</script>

<style>

</style>